<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="shortcut icon" href="images/favicon.ico"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="css/basic.css" />
<title>视频在线点播</title>
<script type="text/javascript" src="js/waitForDev.js"></script>
</head>
<body>
		<div id="main-container">
        		<div id="head">
                		<ul>
                        		<li title="关于我们" id="head-left"><a><img src="images/cd.png"/></a></li>
                                <li id="head-center"></li>
                        		<li title="视频点播系统首页" id="head-right"><a><img src="images/logo.png"/></a></li>
                        </ul>
                </div>
                <div id="item">
                		<ul>
                        		<li class="li-001"></li>
                                <li class="li-002">首页</li>
                        		<li class="li-002"><a onmouseover="showChange('movie');">最新电影</a></li>
                        		<li class="li-002"><a onmouseover="showChange('series');">最新电视剧</a></li>
                                <li class="li-002"><a onmouseover="showChange('E');">最新综艺</a></li>
                                <li class="li-002"><a onmouseover="showChange('MTV');">最新专辑</a></li>
                                <li class="li-002"><a onmouseover="showChange('Notice');">预告</a></li>
                                <li class="li-002"><a>讨论组</a></li>
                       			<li class="li-002"><a href="aboutus.html">关于我们</a></li>
                                <li class="search">
                                		<input type="text" id="search-item" name="search-item" value="搜索视频请在这里输入" title="输入要搜索的视频"/>
                                </li>
                                <li class="search-bu">搜索</li>
                        </ul>
                </div>
        		<div id="content">
                		 <div id="content-left">
                		 	<div id="newMovie" class="showdiv show3">
                		 		<jsp:include page="indexShowMovie.jsp" flush="true"></jsp:include>	
                		 	</div>
                		 	<div id="newSeries" style="display:none;" class="showdiv show2">
                		 		<jsp:include page="indexShowMovie.jsp" flush="true"></jsp:include>	
                		 	</div>
                		 	<div id="newE" style="display:none;" class="showdiv show1">
                		 		<jsp:include page="indexShowMovie.jsp" flush="true"></jsp:include>	
                		 	</div>
                		 	<div id="newMTV" style="display:none;" class="showdiv show0">
                		 		<jsp:include page="indexShowMovie.jsp" flush="true"></jsp:include>	
                		 	</div>
                		 	<div id="newNotice" style="display:none;" class="showdiv show4">
                		 		<jsp:include page="indexShowMovie.jsp" flush="true"></jsp:include>	
                		 	</div>
                         </div>
                		 <div id="content-right">
                         		<ul>
                                		<li id="login">
                                		   <%
                                		   		String username =(String)session.getAttribute("username");
                                		   		String password = (String)session.getAttribute("password");
                                		   		if(password == null){
                                		   			%>
                                		   			<jsp:include page="login.jsp" flush="ture"></jsp:include>
                                		   	<%
                                		   		}else{
                                		   			%>
                                		   			<jsp:include page="wellcom.jsp" flush="ture"></jsp:include>
                                		   	<%
                                		   		}
                                		    %>
                                        </li>
                                		<li id="news"></li>
                                        <li id="aboutus"><br /></li>
                                </ul>
                         </div>
                </div>
        </div>
</body>
</html>
